package com.test.OrderPattern;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2017/06/19 17:18
 **/
public class BuyStock implements Order {
    private Stock stock;

    public BuyStock(Stock stock) {
        this.stock = stock;
    }

    @Override
    public void execute() {
        stock.buy();
    }
}
